package com.example.declex;

import com.example.declex.slice.MainAbilitySlice;

import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;

public class MainAbility extends Ability {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(MainAbilitySlice.class.getName());
        Intent intent1 = new Intent();
        intent1.setOperation(new Intent.OperationBuilder()
            .withBundleName(BuildConfig.BUNDLE_NAME)
            .withAbilityName(BuildConfig.BUNDLE_NAME + ".DemoAbility_").build());
        startAbility(intent1);
        terminateAbility();
    }
}
